﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Novapangeia.Dominio;
using Novapangeia.Negocio;

namespace Novapangeia.Web
{
    public partial class MenuUserControl : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Usuario usuario = GerenciadorUsuario.consultarUsuarioDaSessao();

            //if (usuario == null)
            //{
            //    MultiViewMenu.SetActiveView(MenuDeslogado);
            //}
            //else
            //{
            //    MultiViewMenu.SetActiveView(MenuLogado);
            //}
        }

        protected void linkButtonLogoff_Click(object sender, EventArgs e)
        {
            Session.Clear();
            Response.Redirect("Default.aspx");
        }
    }
}